from django.contrib import admin
from .models import Item

# Register your models here.


class TeachAdmin(admin.ModelAdmin):
    list_display = [
        "id",
        "number",
        "name",
        "func_type",
        "item_type",
        "show",
        "modified_time",
    ]
    # 设置哪些字段可以点击进入编辑界面
    list_display_links = (
        "id",
        "name",
    )
    list_filter = (
        "func_type",
        "item_type",
        "modified_time",
        "name",
    )
    list_editable = (
        "show",
    )

admin.site.register(Item, TeachAdmin)
